<template>
  

    <el-container class="header">
  <el-header>

      <h1>后台管理系统</h1>
       <div></div><el-button type="danger" size="mini" @click="account">退出</el-button>
       
       </el-header>

  <el-container>
    <el-aside width="200px">Aside</el-aside>
    <el-main>Main</el-main>
  </el-container>
</el-container>
</template>

<script>
export default {
data() {
  return {
    
  }
},methods: {
    account(){
      this.clearLocalValue()
      if(!this.getLocalValue('token')){
        this.$router.push('/login')
      } 
    }
},
}
</script>

<style lang="scss" scoped>
// #app,body,header{
//   height: 100%;
  
// }
// .el-container{
// background:#69c0ff;
// }
// .header{
//     display: flex;
//     justify-content: space-between;
//   }
.el-header{
  display: flex;
}

  
</style>